home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1995 November / EnigmA AMIGA RUN 02 (1995)(G.R. Edizioni)(IT)[!][issue 1995-11][Skylink CD].iso / earcd / program / amos / amoslist.lzh / AMOSLIST / 000269_amos-request@svcs1.digex.net_Tue Sep 19 17:58:05 1995.msg < prev    next >
Internet Message Format  |  1995-10-02  |  3KB

  1. Received: from svcs1.digex.net (svcs1.digex.net [204.91.197.224]) by mail1.access.digex.net (8.6.12/8.6.12) with ESMTP id RAA28403;  for <mcox@access.digex.net> ; Tue, 19 Sep 1995 17:58:04 -0400
  2. Received: (from daemon@localhost) by svcs1.digex.net (8.6.12/8.6.12) id QAA20925 for amos-out; Tue, 19 Sep 1995 16:18:50 -0400
  3. Received: from mail1.access.digex.net (mail1.access.digex.net [205.197.247.2]) by svcs1.digex.net (8.6.12/8.6.12) with ESMTP id QAA20922 for <amos-list@svcs1.digex.net>; Tue, 19 Sep 1995 16:18:49 -0400
  4. Received: from mail.enterprise.net (root@mail.enterprise.net [194.72.192.1]) by mail1.access.digex.net (8.6.12/8.6.12) with ESMTP id QAA14833;  for <amos-list@access.digex.net> ; Tue, 19 Sep 1995 16:18:41 -0400
  5. Received: from ppp117.enterprise.net (ppp117.enterprise.net [194.72.195.117]) by mail.enterprise.net (8.6.12/8.6.9) with SMTP id VAA18507 for <amos-list@access.digex.net>; Tue, 19 Sep 1995 21:32:14 GMT
  6. Message-Id: <199509192132.VAA18507@mail.enterprise.net>
  7. Comments: Authenticated sender is <semprini@mail.enterprise.net>
  8. From: "Semprini" <semprini@enterprise.net>
  9. To: amos-list@access.digex.net
  10. Date: Tue, 19 Sep 1995 21:11:23 +0000
  11. Subject: Extensions Wishlist
  12. Reply-to: semprini@enterprise.net
  13. Priority: normal
  14. X-mailer: Pegasus Mail for Windows (v2.10)
  15. Status: O
  16. X-Status: 
  17.  
  18. Oh yes, one thing I've always wanted to see in AMOS is the old BBC 
  19. FNs.  They aren't the ones in Amos which I personally have never used 
  20. (am I missing out?), but are more or less a different format of 
  21. PROCs.
  22.  
  23. In a procedure you have...
  24.  
  25. defining it with PROCEDURE <NAME>[params]
  26. ending it with ENDPROC
  27.  
  28. in an FN you have:
  29.  
  30. defnining it with DEF FN <NAME>[params]
  31. ending it with =<variable>
  32.  
  33. Basically how you use it is you do <variable>=FN<name>.  It's a 
  34. simplified version of:
  35.  
  36. PROC <NAME>: <VARIABLE>=PARAM but it makes the programming a lot 
  37. smoother and smarter.  Sorry, I've always been crap at describiing 
  38. things like this.
  39.  
  40. Say you've got PROCEDURE LEN[L$,L] which takes your string L$ and 
  41. then reduces or expands it so it is L characters long.  It then does 
  42. ENDPROC[L], right?  So, to call it you do:
  43.  
  44. LEN["Test String",20] : PRINT PARAM$
  45. "Test String       "
  46.  
  47. OK?
  48.  
  49. If you have an FN you just do
  50.  
  51. PRINT FN["Test String",20]
  52.  
  53. I know it's not a huge difference really, but it's just a bit less 
  54. fiddly, makes things look much nicer.  You could also use it in a 
  55. similar way to those horrible FNs that AMOS uses it, but with proper 
  56. routines inside rather than just one lined nonsense that you only put 
  57. in once.
  58.  
  59. Sorry, going on a bit now!
  60. .oOo.
  61. "hello" (c) 1995 semprini@enterprise.net (All Rights Reserved)
  62.  
  63. http://www.catalog.com/buttle/semprini/
  64. (for Semprini and Scrotax)